package com.peanut.model;

import java.util.Set;

public class Resource implements java.io.Serializable {
	
	private static final long serialVersionUID = -5242186779502466673L;

	// Fields
	private Integer id;
	//用户在菜单树下是否可见，0不可见，1可见
	private Integer isDisplay;
	private Integer isleaf;
	private String icon;
	private Integer enabled;
	private String action;
	//定义资源的类型：COMMON常用的模块菜单；URL访问的请求地址；
	private String type;
	private String name;
	private Integer orderNumber;
	private String openView;
	private String description;
	private Integer parentId;
	
	private Set<Role> roles;
	
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getIsDisplay() {
		return this.isDisplay;
	}

	public void setIsDisplay(Integer isDisplay) {
		this.isDisplay = isDisplay;
	}

	public Integer getEnabled() {
		return this.enabled;
	}

	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}

	public String getAction() {
		return this.action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getOrderNumber() {
		return this.orderNumber;
	}

	public void setOrderNumber(Integer order) {
		this.orderNumber = order;
	}

	public String getOpenView() {
		return this.openView;
	}

	public void setOpenView(String openView) {
		this.openView = openView;
	}

	public String getType() {
		return type;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getIsleaf() {
		return isleaf;
	}

	public void setIsleaf(Integer isLeaf) {
		this.isleaf = isLeaf;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}
}